
<div class="container-fluid am-cf">
	<div class="row">
		<div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
			<div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 提币</div>
		</div>
		<div class="am-u-lg-3 tpl-index-settings-button">
			<a href="wallet.html">
				<button type="button" class="page-header-button">返回</button>
			</a>
		</div>
	</div>
</div>
<div class="row-content am-cf">
	<div class="row">
		<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
			<div class="widget am-cf">
				<div class="widget-head am-cf">
					<div class="widget-title am-fl">提币{$type}</div>
					<div class="widget-function am-fr">
						<a href="javascript:;" class="am-icon-cog"></a>
					</div>
				</div>
				<div class="widget-body am-fr">
					<form action="" method="POST" id="moneytype" class="am-form tpl-form-line-form">
						{:token()}
						<div class="am-form-group">
							<label for="user-name" class="am-u-sm-3 am-form-label"style="padding: 0px;">数量（{$type})：</label>
							<div class="am-u-sm-9">
								<input type="number" name="num" id="num" placeholder="请输入提币数量">
							</div>
						</div>
						<div class="am-form-group">
							<label class="am-u-sm-3 am-form-label">提币地址：</label>
							<div class="am-u-sm-9">
								<input type="text" name="tokenaddress" placeholder="请输入提币地址">
							</div>
						</div>
						<div class="am-form-group">
							<label class="am-u-sm-3 am-form-label">手续费（USD)：</label>
							<div class="am-u-sm-9">
								<input type="text" id="shou" disabled="disabled" placeholder="手续费">
							</div>
						</div>
						<div class="am-form-group">
							<label class="am-u-sm-3 am-form-label">支付密码：</label>
							<div class="am-u-sm-9">
								<input type="password" name="paypwd" placeholder="请输入支付密码">
							</div>
						</div>
						<div class="am-form-group">
							<label class="am-u-sm-3 am-form-label">验证码：</label>
							<div class="am-u-sm-9" style="width: 30%">
								<input type="text"placeholder="请输入验证码">
							</div>
							<span class="button" style="float: left;">
								<input class="am-btn am-btn-warning" type="button" name="btn" id="changeStyle" value="获取验证码"  onclick="settime(this);" style=" background: #eaa410;cursor: pointer;"/>
							</span>
						</div>
						<div class="am-form-group">
							<div class="am-u-sm-9 am-u-sm-push-3">
								<input type="hidden" name="type" value="{$type}" />
								<input type="hidden" id="mineral_takefto" value="{$mineral_takefto}" />
								<button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success">立即提币</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">  
	//倒计时  
	var countdown=60;  
	function settime(val) {  
		if (countdown == 0) {  
			val.removeAttribute("disabled");  
			val.value="获取验证码";  
			countdown = 60;  
			return false;  
		} else {  
			val.setAttribute("disabled", true);  
			val.value="重新发送(" + countdown + ")";  
			countdown--;  
		}  
		setTimeout(function() {  
			settime(val);  
		},1000);  
	}  
	var input = document.getElementById('num');
    var div = document.getElementById('shou');
    var price=document.getElementById('mineral_takefto').value;
    input.oninput = function(){
        div.value = input.value*price/100;
    }
</script> 
